package logic

import (
	"context"
	"good/models/mysql"

	"good/goodrpc/goodrpc"
	"good/goodrpc/internal/svc"

	"github.com/zeromicro/go-zero/core/logx"
)

type LikeDelLogic struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
	logx.Logger
}

func NewLikeDelLogic(ctx context.Context, svcCtx *svc.ServiceContext) *LikeDelLogic {
	return &LikeDelLogic{
		ctx:    ctx,
		svcCtx: svcCtx,
		Logger: logx.WithContext(ctx),
	}
}

func (l *LikeDelLogic) LikeDel(in *goodrpc.LikeDelRequest) (*goodrpc.LikeDelResponse, error) {
	// todo: add your logic here and delete this line
	var like mysql.Like
	mysql.DB.Debug().Delete(&like)

	return &goodrpc.LikeDelResponse{}, nil
}
